﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Common.Util;

namespace Authentication.Model.Model
{
    public partial class ApplicationAccountRule
    {
        [NotMapped]
        public Guid GuidKey { get { return new Guid(this.ApplicationKey); } }

        public ApplicationObject Object { get; set; }

        [NotMapped]
        public bool IsActive { get { return Active.IsYes(); } }
    }
}
